class com.Lithyem.NSGS.Ebillboard.Loader extends MovieClip{
	
	var bar_mc:MovieClip;
	var cap_mc:MovieClip;
	var display_txt:TextField;
	
	function Loader(){
		reset();
	}
	
	function reset():Void{
		updateBar(0);
	}
	
	function updateBar(n:Number):Void{
		bar_mc._width = n*200;
		cap_mc._x = bar_mc._width + bar_mc._x;
		display_txt.text = 'Loading... ' + int(n*100).toString() + '%';
	}

}